Skip to content

Conversation

@gmilde
Copy link
Contributor

@gmilde gmilde commented Nov 12, 2025

The utility function sphinx.util.parsing.nested_parse_to_nodes() allows
nested parsing with support for sections.
This is a "power user" feature with known problems and usage restrictions.

Purpose

Inform the user about the risks and limitations when using nested_parse_to_nodes().

References

Notes

This is a re-creation of PR #13981
without the workaround for Git re-encoding problems

"section" elements can only be children of "document" or "section"
elements, not "sidebar".
Cf. https://docutils.sourceforge.io/docs/ref/doctree.html#section
@AA-Turner
Copy link
Member

Very sorry for the delay in reviewing this!!

A

@AA-Turner AA-Turner changed the title Fix docstring of sphinx.util.parsing.nested_parse_to_nodes(). Fix docstring of sphinx.util.parsing.nested_parse_to_nodes() Nov 30, 2025
@AA-Turner AA-Turner merged commit bec5c49 into sphinx-doc:master Nov 30, 2025
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Possible data loss with sphinx.util.parsing.nested_parse_to_nodes() misleading docstring for sphinx.util.parsing.nested_parse_to_nodes()

2 participants